from langchain.document_loaders import UnstructuredMarkdownLoader
markdown_path = "files/20220302-基于Nexus实现高可用Maven私有仓库调研报告-余文奇.md"


def normal_markdown_loader():
    loader = UnstructuredMarkdownLoader(markdown_path)
    print(loader.load())


def markdown_loader_retain_elements():
    loader = UnstructuredMarkdownLoader(markdown_path, mode="elements")
    data = loader.load()
    print(data)


if __name__ == '__main__':
    markdown_loader_retain_elements()